import axios from "@/axios"


function list(): Promise<Array<{}>> {
    return new Promise((resolve, reject) => {
        axios.get("/projects/list", {
        }).then((response) => {
            resolve(response.data);
        }).catch((err) => {
            // 请求数据失败，返回错误
            console.log(err);
            reject(err);
        })
    });
}

export default { list };